<!DOCTYPE html>
<html lang="zh-cn">

<head>
  <meta charset="utf-8" />
  <title>博文 - 班级博客</title>
  <%- include('./layouts/head.ejs')%>
</head>

<body>
  <!-- 博文页 -->
  <!-- 顶部导航 -->
  <header class="am-topbar am-topbar-fixed-top">
    <div class="am-container">
      <div class="am-collapse am-topbar-collapse">
        <ul class="am-nav am-nav-pills am-topbar-nav">
          <li class=""><a href="/">首页</a></li>
          <li class=""><a href="/campus">校区</a></li>
          <li class=""><a href="/schoolclass">班级</a></li>
          <li class="am-active"><a href="javascript:;" id="btn-bw" onclick="show();">博文</a></li>
          <li class=""><a href="/comment">评论</a></li>
          <li class=""><a href="/homework">作业</a></li>
          <li class="new-entry"><a href="">学习计划</a></li>
        </ul>
        <div class="am-topbar-right">
          <button class="am-btn am-btn-success am-topbar-btn am-btn-sm" style="display: none;"><span class="iconfont">&#xe63e;</span>
            创建班级</button>
        <a href="/login" class="am-btn-primary"> <button class="am-btn am-btn-primary am-topbar-btn am-btn-sm"><span class="iconfont">&#xe60b;</span>
            登录</button></a> 
        </div>
      </div>
    </div>
  </header>
  <!-- 中间内容部分 -->
  <div class="am-g am-container wrapper">
    <div class="am-u-md-12">
      <article class="am-margin-top-sm">
        <div class="sort-selector am-hide-sm-only">
          <span class="am-fr">
            <a href="/bezero">零回复博文</a> <span class="sort-selector-divider">|</span>
            <a href="/betotal">总阅读排行</a> <span class="sort-selector-divider">|</span>
            <a href="/beweek">周阅读排行</a> <span class="sort-selector-divider">|</span>
            <a href="/beessence">首页精华</a> <span class="sort-selector-divider">|</span>
            <span>所有博文</span> </span>
        </div>
        <div class="sort-selector am-show-sm-only">
          <span class="am-fr">
            <a href="/bezero">零回复</a> <span class="sort-selector-divider">|</span>
            <a href="/betotal">总阅读</a> <span class="sort-selector-divider">|</span>
            <a href="/beweek">周阅读</a> <span class="sort-selector-divider">|</span>
            <a href="/beessence">精华</a> <span class="sort-selector-divider">|</span>
            <span>所有</span> </span>
        </div>
        <div class="am-u-md-12">
          <ul class="am-list postsUser">
            <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-bottom-right">
              <h3 class="am-list-item-hd">
                <a href="" target="_blank"></a>
              </h3>
              <div class="feed-avatar">
                <a href="" target="_blank"><img class="am-img-thumbnail" src=""></a>
              </div>
              <div class="avatar-item-text">
                <div class="am-list-item-text description">
                </div>
              </div>
              <div class="am-u-sm-12 am-text-sm">
                <div class="am-fr">
                  <i class="iconfont">&#xe61f;</i><a title="班级" href="" target="_blank">
                  </a>&nbsp;
                  <i class="iconfont">&#xe614;</i><a title="发布人" href="" target="_blank">
                  </a>&nbsp;
                  <span title="发布时间"><i class="iconfont">&#xe616;</i> </span>&nbsp;
                  <span title="评论"><i class="iconfont">&#xe606;</i> </span>&nbsp;
                  <span title="阅读"><i class="iconfont">&#xe641;</i> </span>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </article>
      <div class="pager"><a href="" class="p_1 current">1</a><a href="" class="p_2 middle">2</a><a href=""
          class="p_3 middle">3</a><a href="" class="p_4 middle">4</a><a href="" class="p_5 middle">5</a><a href=""
          class="p_6 middle">6</a><a href="" class="p_7 middle">7</a><a href="" class="p_8 middle">8</a><a href=""
          class="p_9 middle">9</a><a href="" class="p_10 middle">10</a><a href="" class="p_11 middle">11</a><span
          class="ellipsis">···</span><a href="" class="p_100 last">100</a><a href="">Next &gt;</a></div>
    </div>
  </div>

  <!-- 底部 -->
  <footer class="footer">
    <p>
      Copyright &copy;2019 <a href="" target="_blank">Cnblogs, Inc.</a> Powered by ASP.NET Core on
      Linux. <a href="" target="_blank"><span class="iconfont">&#xe620;</span>问题反馈</a>&nbsp;<a href=""
        target="_blank">帮助文档</a>
    </p>
  </footer>
  
  <script src="./lib/template/template-web.js"></script>
  <script src="./lib/jquery-3.3.1.js"></script>
  <%- include('./template/posts-template.ejs')%>
  <script src="./js/post.js"></script>
 <!--  <script>
      $.ajax({
      type: 'get',
      url: '/postsUser',
      data: '',
      success: function (data) {
        console.log(data)
        var str1 = template('posts-template', { data: data });
        console.log(str1)
        $('.postsUser').html(str1);
      }
    })
  </script> -->
</body>

</html>